#pragma once
class CServer :
	public jeflib::iocp::ILinkContext
{
public:
	CServer(void);
	~CServer(void);

	virtual void on_close();
	virtual void on_accepted(jeflib::iocp::NETHANDLE nethandle,const char *szip,const unsigned short sport);
	virtual void on_recv(const char *pdata,int ndatasize);
	virtual void on_connect_ok(jeflib::iocp::NETHANDLE nethandle);
	virtual void on_connect_err(jeflib::iocp::NETHANDLE nethandle,bool bactive);
	virtual void on_send_ok(const char *pdata,int ndatasize);
	virtual void on_send_err(const char *pdata,int ndatasize);
	virtual jeflib::iocp::ILinkContext* new_context();
};

